import request from "../request/request"
//创建产品
export const CreateProduct=(data)=>{
    return request.post('/product/createpro',data)
}
export const GetProductList=()=>{
    return request.get("/product/productlist")
}
export const DeleteProduct=(id)=>{
    return request.post("/product/prodelete",{
        data:{
            id
        }
    })
}
// productid
export const GetProductidData=(id)=>{
    return request.get("/product/productid",{
        params:{
            id
        }
    })
}
//editproduct 更新
export const EditProduct=(data)=>{
    return request.post('/product/editproduct',data)
}